package datamodels

type AdminUser struct {
	BaseModel
	UserName      string `gorm:"column:username" json:"user_name"`
	Password      string `gorm:"column:password" json:"-"`
	Name          string `gorm:"column:name" json:"name"`
	Avatar        string `gorm:"column:avatar" json:"avatar"`
	RememberToken string `gorm:"column:remember_token" json:"remember_token"`
}

type AdminUserClaim struct {
	UserID   uint64
	UserName string
}

func (*AdminUser) TableName() string {
	return GetTableName("admin_users")
}
